﻿//  Copyright (c) 2011 Ray Liang (http://www.dotnetage.com)
//  Licensed MIT: http://www.opensource.org/licenses/mit-license.php

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace DNA.Mvc.Publishing
{
    public class ArticleUpdateEvent : EventBase
    {
        public ArticleUpdateEvent(Article article, bool isNew = false)
        {
            Article = article;
            IsNew = isNew;
            if (isNew)
                Name = "NewArticle";
        }

        public bool IsNew { get; private set; }

        public Article Article { get; private set; }
    }
}
